package com.user.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultBody {
    private Integer code;
    private boolean flag;
    private Object msg;

    public static ResultBody creatResult(Integer code,boolean flag,Object msg){
        return new ResultBody(code,flag,msg);
    }
}
